package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SaveAddressBookDTO implements Serializable {

    private static final long serialVersionUID = -3236153447367543818L;

    @ApiModelProperty(value = "收货人")
    @NotBlank(message = "收货人不能为空！")
    private String consignee;

    @ApiModelProperty(value = "性别 0 女 1 男")
    @NotNull(message = "性别不能为空！")
    private Integer sex;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "收货人不能为空！")
    private String phone;

    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "收货人不能为空！")
    private String detail;

    @ApiModelProperty(value = "标签")
    @NotBlank(message = "收货人不能为空！")
    private String label;

}
